package com.kehutong.wwin.service.entity;

import java.time.LocalDateTime;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

/**
 * <pre>微信内建企业设置,id为微信id</pre>
 * 
 * @author liuzhen (liuxing521a@163.com)
 * @createTime 2020年09月14日 上午9:43:38
 */
@Table("t_wwin_corp")
public class Corp extends Entity {

	private static final long serialVersionUID = -6604192097329771369L;

	protected Corp(String id) {
		super(id);
	}
	
	@Column(comment="客户通企业id")
	private String khtid;
	
	@Column(comment = "企业简称")
    private String corpName	;

    @Column(comment = "企业全称")
    private String corpFullName	;

	@Column(length=64, comment="员工密约")
	private String employeeSecret;

	@Column(comment = "事件接收token")
	private String employeeToken;
	
	@Column(length = 64, comment = "事件接收EncodingAESKey")
	private String employeeEncodingAESKey;
	
	@Column(length = 512, comment = "员工accessToken")
	private String employeeAccessToken;
	
	@Column(comment = "员工accessToken")
	private LocalDateTime employeeAccessTokenExpiredTime;
	
	
	@Column(length=64, comment="联系人密约")
	private String contactSecret;
	
	@Column(comment = "事件接收token")
	private String contactToken;
	
	@Column(length = 64, comment = "事件接收EncodingAESKey")
	private String contactEncodingAESKey;
	
	@Column(length = 512, comment = "客户accessToken")
	private String contactAccessToken; 
	
	@Column(comment = "客户accessToken")
	private LocalDateTime contactAccessTokenExpiredTime;

	@Column(comment = "逻辑删除")
	private boolean deleted;
	
	public String getKhtid() {
		return khtid;
	}

	public void setKhtid(String khtid) {
		this.khtid = khtid;
	}

	public String getCorpName() {
		return corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	public String getCorpFullName() {
		return corpFullName;
	}

	public void setCorpFullName(String corpFullName) {
		this.corpFullName = corpFullName;
	}

	public String getContactSecret() {
		return contactSecret;
	}

	public void setContactSecret(String contactSecret) {
		this.contactSecret = contactSecret;
	}

	public String getEmployeeSecret() {
		return employeeSecret;
	}

	public void setEmployeeSecret(String employeeSecret) {
		this.employeeSecret = employeeSecret;
	}

	public String getEmployeeToken() {
		return employeeToken;
	}

	public void setEmployeeToken(String employeeToken) {
		this.employeeToken = employeeToken;
	}

	public String getEmployeeEncodingAESKey() {
		return employeeEncodingAESKey;
	}

	public void setEmployeeEncodingAESKey(String employeeEncodingAESKey) {
		this.employeeEncodingAESKey = employeeEncodingAESKey;
	}

	public String getContactToken() {
		return contactToken;
	}

	public void setContactToken(String contactToken) {
		this.contactToken = contactToken;
	}

	public String getContactEncodingAESKey() {
		return contactEncodingAESKey;
	}

	public void setContactEncodingAESKey(String contactEncodingAESKey) {
		this.contactEncodingAESKey = contactEncodingAESKey;
	}

	public String getContactAccessToken() {
		return contactAccessToken;
	}

	public void setContactAccessToken(String contactAccessToken) {
		this.contactAccessToken = contactAccessToken;
	}

	public LocalDateTime getContactAccessTokenExpiredTime() {
		return contactAccessTokenExpiredTime;
	}

	public void setContactAccessTokenExpiredTime(LocalDateTime contactAccessTokenExpiredTime) {
		this.contactAccessTokenExpiredTime = contactAccessTokenExpiredTime;
	}

	public String getEmployeeAccessToken() {
		return employeeAccessToken;
	}

	public void setEmployeeAccessToken(String employeeAccessToken) {
		this.employeeAccessToken = employeeAccessToken;
	}

	public LocalDateTime getEmployeeAccessTokenExpiredTime() {
		return employeeAccessTokenExpiredTime;
	}

	public void setEmployeeAccessTokenExpiredTime(LocalDateTime employeeAccessTokenExpiredTime) {
		this.employeeAccessTokenExpiredTime = employeeAccessTokenExpiredTime;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
}
